package edu.olin.scheduler.gui;

import java.awt.Component;
import javax.swing.JOptionPane;

public class ConfirmDialog {
    
    public static boolean confirm(Component parent, String message){
        return confirm(parent, message,"Olin.Scheduler");
        }
    
    public static boolean confirm(Component parent, String message, String title){
        int result = JOptionPane.showConfirmDialog(parent,message,title,JOptionPane.YES_NO_OPTION);
        return result==JOptionPane.YES_OPTION;
        }
    
}
